<?php
	$id_tarif = $_POST['id_tarif'];
	$id_inacbg = $_POST['id_inacbg'];
	$tarif = $_POST['tarif'];
	$id_kelas_tarif=$_GET['id_kelas_tarif'];

	if(isset($_POST['submit'])){
		$sql="update tarif_inacbg set kode_inacbg='$id_inacbg',tarif_inacbg='$tarif' where id_tarif_inacbg=$id_tarif";
	}
	echo $sql;
	$qry=mysql_query($sql);
	$url_sukses='utama.php?module=mod_tarif_inacbg&id_kelas_tarif='.$id_kelas_tarif;
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>